<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');  ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
 
<!-- Website Title --> 
<title>Gạo ba miền | Quản trị - Đăng nhập</title>

<!-- Meta data for SEO -->
<meta name="description" content="">
<meta name="keywords" content="">

<!-- Template stylesheet -->
<link href="<?php echo STATIC_DOMAIN ?>skins/admin/screen.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo STATIC_DOMAIN ?>skins/admin/datepicker.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo STATIC_DOMAIN ?>js/admin/visualize/visualize.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo STATIC_DOMAIN ?>js/admin/jwysiwyg/jquery.wysiwyg.css" rel="stylesheet" type="text/css" media="all">
<link href="<?php echo STATIC_DOMAIN ?>js/admin/fancybox/jquery.fancybox-1.3.0.css" rel="stylesheet" type="text/css" media="all">

<!--[if IE]>
	<link href="public/css/ie.css" rel="stylesheet" type="text/css" media="all">
	<meta http-equiv="X-UA-Compatible" content="IE=7" />
<![endif]-->

<!-- Jquery and plugins -->
<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/jquery-1.7.min.js"></script>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/jquery-ui-1.7.1.custom.min.js"></script>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/jquery.validate.js"></script>
<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/jquery.img.preload.js"></script>
<!--<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/custom_black.js"></script>-->
<script type="text/javascript" src="<?php echo STATIC_DOMAIN ?>js/admin/hint.js"></script>
<script type="text/javascript" charset="utf-8"> 
$(function(){
    $('input[title!=""]').hint();
    $('#login_info').click(function(){
		$(this).fadeOut('fast');
	});
    
    $("#form_login").validate({
            invalidHandler: function(form, validator) {
                var errors = validator.numberOfInvalids();
                if (errors) {
                    validator.errorList[0].element.focus();
                }
            },
            ignore: ":hidden",
            errorElement: "li",
            errorPlacement: function(error, element) {
                $(".error").html('');
                error.appendTo($(".error"));
            }
            ,
            rules: {
                username : {
                    required : true
                },
                password : {
                    required : true
                }
            },
            messages: {
                username : "Tài khoản không được để trống!",
                password : "Mật khẩu không được để trống!"
            }
        });
});
</script>
</head>
<body class="login">

	<!-- Begin login window -->
	<div id="login_wrapper">
		<div id="login_info" class="alert_success noshadow" style="width:350px;margin:auto;padding:auto;">
            <ul class="error">
                <?php echo form_error(); ?>
                <?php if($error != ''): ?>
                <li><?php echo $error ?></li>
                <?php endif; ?>
            </ul>
		</div>
		<br class="clear"/>
		<div id="login_top_window">
			<img src="<?php echo STATIC_DOMAIN ?>images/admin/blue/top_login_window.png" alt="top window"/>
		</div>
		
		<!-- Begin content -->
		<div id="login_body_window">
			<div class="inner">
				<img src="<?php echo STATIC_DOMAIN ?>images/admin/login_logo.png" alt="logo"/>
				<form action="#" method="POST" id="form_login" name="form_login">
					<p>
                        <input type="text" id="username" name="username" style="width:285px" title="Tài khoản" value="<?php echo set_value('username') ?>"/>
					</p>
					<p>
                        <input type="password" id="password" name="password" style="width:285px" title="Mật khẩu"/>
					</p>
					<p style="margin-top:50px">
						<input type="submit" id="submit" name="submit" value="Login" class="Login" style="margin-right:5px"/>
					</p>
				</form>
			</div>
		</div>
		<!-- End content -->
		
		<div id="login_footer_window">
			<img src="<?php echo STATIC_DOMAIN ?>images/admin/blue/footer_login_window.png" alt="footer window"/>
		</div>
		<div id="login_reflect">
			<img src="<?php echo STATIC_DOMAIN ?>images/admin/blue/reflect.png" alt="window reflect"/>
		</div>
	</div>
	<!-- End login window -->
</body>
</html>

